package com.neo.rabbit.object;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.neo.model.User;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
@RabbitListener(queues = "object")
public class ObjectReceiver
{
    @RabbitHandler
    public void process(User user)
    {
        log.info("Receiver object : " + user);
    }
}
